home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 26 / AMIGAplus Sonderheft 26 (2000)(Falke)(DE)(Track 1 of 2)[!].iso / Tools / GFX-Viewer / SViewII / ARexx-Scripts / ConvertFile.rx < prev    next >
Text File  |  1999-03-29  |  1KB  |  65 lines

  1. /*
  2.    $VER: ConvertFile.rx V8.00 (22.7.98)
  3.    © 1993-98 by Andreas R. Kleinert
  4.  
  5.    This script demonstrates loading, saving (converting) and
  6.    displaying files by using SViewII's ARexxPort.
  7.  
  8. */
  9.  
  10. address command
  11.  
  12. SViewII "-INSTALL_APPMENU=FALSE -INSTALL_APPICON=FALSE"
  13.  
  14. say ""
  15. say "ARexx: SViewII has been started : Waiting a moment..."
  16.  
  17. wait 5
  18.  
  19. OPTIONS RESULTS
  20. SIGNAL ON ERROR
  21. SVIIPORT = 'SViewII.rx'
  22. SVNGPORT = 'SViewNG.rx'
  23. SVPORT   = 'SuperView.rx'
  24.  
  25. IF ~SHOW('P',SVPORT) THEN SVPORT = SVNGPORT
  26. IF ~SHOW('P',SVPORT) THEN SVPORT = SVIIPORT
  27. IF ~SHOW('P',SVPORT) THEN DO
  28.   say "Could not locate ARexx port of SViewII !"
  29.   CALL ErrorOut 0
  30. END
  31.  
  32. ADDRESS VALUE SVPORT
  33.  
  34. say "ARexx: Loading a PCX Graphics via the LOAD command"
  35. 'LOAD=TEST.PCX'
  36.  
  37. say "ARexx: Saving Graphics as IFF ILBM"
  38.  
  39. 'SAVE_TYPE=ILBM CmpByteRun1'
  40. 'SAVE=TEST.IFF'
  41.  
  42. address command wait 3
  43.  
  44. say "ARexx: Load this ILBM Gfx now for control"
  45.  
  46. 'SHOW=TEST.IFF'
  47.  
  48. say "ARexx: O.K. : Let's quit !"
  49.  
  50. address command Wait 2
  51.  
  52. 'QUIT'
  53.  
  54. CALL ErrorOut 0
  55.  
  56.  
  57. /* Errorout procedure ----------------------- */
  58.  
  59. ErrorOut:
  60.         PARSE ARG ExitCode
  61.  
  62.         EXIT ExitCode
  63.  
  64.   END
  65.